package CardTest;

import com.jule.teenpatti.game.dao.DBUtil;
import com.jule.teenpatti.game.dao.bean.CommonConfigModel;
import com.jule.teenpatti.game.dao.bean.RoomConfigModel;
import org.junit.jupiter.api.Test;

public class SQLDemo {
    @Test
    void demo(){
//        Config.load();
        CommonConfigModel ccm = new CommonConfigModel();
        ccm.setId(1);
        ccm.setPlayType(111);
        ccm.setCanChangeCard(true);
        ccm.setChangeCardFee(888);
        ccm.setAutoSettleType(1);
        ccm.setNeedAllowSideShow(false);
        ccm.setChooseSideShowUser(true);
        ccm.setAllowSideShowCountDownSec(10);
        ccm.setBetCountDownSec(15);
        ccm.setGameStartCountDownSec(88888);
//        DBUtil.insertCommon(ccm);
        //DBUtil.updateCommon(ccm);

        RoomConfigModel rcm = new RoomConfigModel();
        rcm.setId(1);
        rcm.setRoomId(100000+"");
        rcm.setMinScore4JoinTable(1000);
        rcm.setAnte(100);
        rcm.setFirstBaseBetScore(55);
        rcm.setMaxBetScore(88);
        rcm.setServiceChargeRate(88.878);
        rcm.setMaxBlindRound(8);
        rcm.setMaxPot(88888888);
        rcm.setTipValue(10);
//        DBUtil.insertRoom(rcm);
        System.out.println(DBUtil.updateRoom(rcm));
    }
}
